/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.evaluationafterprobation.service;

import java.util.List;

import com.jeeplus.modules.evaluationafterprobation.entity.PinYin;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.evaluationafterprobation.entity.EvaluationAfterProbation;
import com.jeeplus.modules.evaluationafterprobation.mapper.EvaluationAfterProbationMapper;

/**
 * 试用期满评价Service
 * @author 张鑫
 * @version 2022-10-11
 */
@Service
@Transactional(readOnly = true)
public class EvaluationAfterProbationService extends CrudService<EvaluationAfterProbationMapper, EvaluationAfterProbation> {

	public EvaluationAfterProbation get(String id) {
		return super.get(id);
	}
	
	public List<EvaluationAfterProbation> findList(EvaluationAfterProbation evaluationAfterProbation) {
		return super.findList(evaluationAfterProbation);
	}
	
	public Page<EvaluationAfterProbation> findPage(Page<EvaluationAfterProbation> page, EvaluationAfterProbation evaluationAfterProbation) {
		return super.findPage(page, evaluationAfterProbation);
	}
	public List<PinYin> queryName(){
		return mapper.queryName();
	}
	public List<PinYin> queryUnit(){
		return mapper.queryUnit();
	}
	public List<PinYin> queryPositon(){
		return mapper.queryPosition();
	}
	public Page<EvaluationAfterProbation> exportQuery (Page<EvaluationAfterProbation> page,EvaluationAfterProbation evaluationAfterProbation) {
		dataRuleFilter(evaluationAfterProbation);
		evaluationAfterProbation.setPage(page);
		page.setList(mapper.exportQuery(evaluationAfterProbation));
		return page;
	}

	public Page<EvaluationAfterProbation> evaluateNum (Page<EvaluationAfterProbation> page,EvaluationAfterProbation evaluationAfterProbation) {
		dataRuleFilter(evaluationAfterProbation);
		evaluationAfterProbation.setPage(page);
		page.setList(mapper.evaluateNum(evaluationAfterProbation));
		return page;
	}

	public Page<EvaluationAfterProbation> nowOrTotalNum (Page<EvaluationAfterProbation> page,EvaluationAfterProbation evaluationAfterProbation) {
		dataRuleFilter(evaluationAfterProbation);
		evaluationAfterProbation.setPage(page);
		page.setList(mapper.nowOrTotalNum(evaluationAfterProbation));
		return page;
	}

	public Page<EvaluationAfterProbation> nowTotal (Page<EvaluationAfterProbation> page,EvaluationAfterProbation evaluationAfterProbation) {
		dataRuleFilter(evaluationAfterProbation);
		evaluationAfterProbation.setPage(page);
		page.setList(mapper.nowTotal(evaluationAfterProbation));
		return page;
	}

	@Transactional(readOnly = false)
	public void save(EvaluationAfterProbation evaluationAfterProbation) {
		super.save(evaluationAfterProbation);
	}
	
	@Transactional(readOnly = false)
	public void delete(EvaluationAfterProbation evaluationAfterProbation) {
		super.delete(evaluationAfterProbation);
	}
	
}